this._activeConnection = activeConnection;
- this._clearSection();
this._queueCreateSection();
},
this._updateStatusItem();
- this._clearSection();
this._queueCreateSection();
this.emit('state-changed');
},
_updateAutoConnectionName: function() {
this._autoConnectionName = this._makeConnectionName(this.device);
- this._clearSection();
this._queueCreateSection();
this._updateStatusItem();
}
this._networks.splice(res.network, 1);
let newPos = Util.insertSorted(this._networks, network, Lang.bind(this, this._networkSortFunction));
- if (newPos != res.network) {
- this._clearSection();
+ if (newPos != res.network)
this._queueCreateSection();
- }
},
_accessPointAdded: function(device, accessPoint) {
let newPos = Util.insertSorted(this._networks, apObj, this._networkSortFunction);
// Queue an update of the UI if we changed the order
- if (newPos != pos) {
- this._clearSection();
+ if (newPos != pos)
this._queueCreateSection();
- }
},
_accessPointRemoved: function(device, accessPoint) {
if (res.network < this._networks.length-1)
okNext = this._networkSortFunction(this._networks[res.network + 1], apObj) <= 0;
- if (!okPrev || !okNext) {
- this._clearSection();
+ if (!okPrev || !okNext)
this._queueCreateSection();
- } else if (apObj.item) {
+ else if (apObj.item)
apObj.item.updateBestAP(apObj.accessPoints[0]);
- }
}
},
if (forceupdate) {
this._networks.sort(this._networkSortFunction);
- this._clearSection();
this._queueCreateSection();
}
},
if (forceupdate) {
this._networks.sort(this._networkSortFunction);
- this._clearSection();
this._queueCreateSection();
}
},